package api

import (
	"database/sql"
	"time"
)

type TestReq struct {
	Email    string `json:"email" v:"required #邮箱不能为空"`
	Password string `json:"password" v:"required #password不能为空"`
}

type UserRechargeInfo struct {
	UserId     int64          `db:"user_id"`  // 用户id
	UserNo     sql.NullString `db:"user_no"`  // 编号
	Nickname   sql.NullString `db:"nickname"` // 昵称
	Country    sql.NullString `db:"country"`  // 国家
	Region     sql.NullString `db:"region"`
	Gender     sql.NullInt64  `db:"gender"` // 性别：0未知 1男 2女
	DeviceName sql.NullString `db:"device_name"`
	UnionName  sql.NullString `db:"union_name"`
	UnionId    sql.NullInt64  `db:"union_id"`
	Created    time.Time      `db:"created"`
	Updated    sql.NullTime   `db:"updated"`
	Price      float64        `db:"price"`
}
